Returns True or False to indicate if a directory exists.
Syntax
DirectoryExists("DirectoryPath")
Arguments
| Argument | Description |
|---|---|
| DirectoryPath |
Full path to the directory to check for. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory. |
Return value
| Value | Description |
|---|---|
| True | Directory exists. |
| False | Directory does not exist. |
Example
If (DirectoryExists("C:\\Testing\\TestDocuments") = True) Then
PrintLn("Directory exists")
Else
PrintLn("Directory does not exist")
End If